void Start() { vertical = GetComponent <VerticalMove>(); if (useVelocity) { GetComponent <Rigidbody>().velocity = transform.forward * power; } }
// Use this for initialization void Start() { verticalMove = GetComponent <VerticalMove>(); horizontalMove = GetComponent <HorizontalMove>(); if (random) { Random.InitState((int)Time.time); } }
public override void UpdateForMovement() { if (counter >= 0) { counter -= Time.deltaTime; } else { moveBehaviour = new VerticalMove(); } }
// Use this for initialization void Start() { vert = GetComponentInParent <VerticalMove>(); }
// Use this for initialization void Start() { anim = GetComponentInChildren <Animator>(); vert = GetComponentInParent <VerticalMove>(); }
void Awake() { vert_move = this; monster_head = gameObject.transform; }