// 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>(); }
// Start is called before the first frame update void Awake() { setManager = this.GetComponent <setManager>(); InitMap(); }
// Start is called before the first frame update void Awake() { _instance = this; }