示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     rigidbody   = GetComponent <Rigidbody2D>();
     collider    = GetComponent <BoxCollider2D>();
     animator    = GetComponent <Animator>();
     gamemanager = GameObject.FindGameObjectWithTag("Manager").GetComponent <setManager>();
 }
示例#2
0
 // Start is called before the first frame update
 void Awake()
 {
     setManager = this.GetComponent <setManager>();
     InitMap();
 }
示例#3
0
 // Start is called before the first frame update
 void Awake()
 {
     _instance = this;
 }