void Start() { pi = GetComponent <playerinput> (); //get the script of playerinput anim = model.GetComponent <Animator> (); rigid = GetComponent <Rigidbody> (); windDirection = Vector3.zero; }
void Awake() { pi = GetComponent <playerinput> (); rigid2d = GetComponent <Rigidbody2D> (); animbody = transform.Find("body").GetComponent <Animator>(); animhead = transform.Find("head").GetComponent <Animator>(); //modle = this.gameObject.transform.GetChild(0).gameObject; }
// Start is called before the first frame update void Start() { pi = GetComponent <playerinput>(); rigid2d = GetComponent <Rigidbody2D>(); aim = GameObject.Find("aim"); }
// Start is called before the first frame update void Start() { pi = GetComponent <playerinput>(); // rb = GetComponent<Rigidbody2D>(); }