Example #1
0
 void Start()
 {
     pi            = GetComponent <playerinput> (); //get the script of playerinput
     anim          = model.GetComponent <Animator> ();
     rigid         = GetComponent <Rigidbody> ();
     windDirection = Vector3.zero;
 }
Example #2
0
 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;
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     pi      = GetComponent <playerinput>();
     rigid2d = GetComponent <Rigidbody2D>();
     aim     = GameObject.Find("aim");
 }
Example #4
0
    // Start is called before the first frame update
    void Start()
    {
        pi = GetComponent <playerinput>();

        // rb = GetComponent<Rigidbody2D>();
    }