示例#1
0
        //[System.NonSerialized] public Vector2 moveDir;

        private void Start()
        {
            rb = GetComponent <Rigidbody2D>();
            //character = GetComponent<Character>();
            character = GetComponent <CharacterMovement>();
        }
示例#2
0
 void Start()
 {
     anim         = GetComponent <Animator>();
     charMovement = GetComponent <CharacterMovement>();
 }