void Initialization() { // SetTrail(); trail = GetComponent <TrailRenderer>(); trail.enabled = false; holder = transform.root.gameObject.GetComponent <GoWFight>(); }
// Use this for initialization void Start() { if (!is_IA) { inputs = GetComponent <GoWInputs>(); } fight = GetComponent <GoWFight>(); move = GetComponent <GoWMove>(); axe_control = GetComponent <GoWAxeControl>(); }
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; } }