Language - C# Basics

Ctrl + Shift + Q quick positioning method

Print  
print(),debug.log();

error, console

Variable   (local var declaration), still used globally, private, public, int, float, string, bool

If there are special characters involved in the characters, use "\" to process

Operators: Basic Operators, Logical Operators, Accumulation, Subtraction, Assignment

Object, game object  (the parent class to the child class is converted to empty (null), the child class to the parent class can be converted)

判断条件(if(){}, if(){}else if() {}  else{})

for loop use



break , continue


switch statement


array


ArrayList array usage


function


Use of enumeration types


class introduction


class inheritance


Abstract classes and encapsulation of classes


Virtual,override



Overload


Delegate unified control of multiple controls


Singleton mode (unified management, in-game data or unified management of in-game sounds)


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324503717&siteId=291194637