Beispiel #1
0
 void Initialization()
 {
     // SetTrail();
     trail         = GetComponent <TrailRenderer>();
     trail.enabled = false;
     holder        = transform.root.gameObject.GetComponent <GoWFight>();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     if (!is_IA)
     {
         inputs = GetComponent <GoWInputs>();
     }
     fight       = GetComponent <GoWFight>();
     move        = GetComponent <GoWMove>();
     axe_control = GetComponent <GoWAxeControl>();
 }
Beispiel #3
0
    void Initialization()
    {
        cam            = Camera.main;
        rb             = GetComponent <Rigidbody>();
        anim           = GetComponent <Animator>();
        fight          = GetComponent <GoWFight>();
        TargetRotation = transform.rotation;

        height = GetComponent <Collider>().bounds.size.y / 2f;
        foreach (TrailRenderer tr in DashTrails)
        {
            tr.enabled = false;
        }
    }