void Start() { rb = GetComponent <Rigidbody2D>(); characterData = this.gameObject.GetComponent <CharacterData>(); netWorkInput = this.gameObject.GetComponent <NetWorkInput>(); }
void Start() { netWorkInput = this.gameObject.GetComponent <NetWorkInput>(); anim = GetComponent <Animator>(); }