// Use this for initialization public override void Start() { base.Start(); gb = FindObjectOfType <GunBehavior>(); mb = FindObjectOfType <MusclesBehavior>(); leftFoot = transform.Find("leftFloor").GetComponent <footScript>(); rightFoot = transform.Find("rightFloor").GetComponent <footScript>(); }
public override void Start() { base.Start(); gun = FindObjectOfType <GunBehavior>(); grabPoint = transform.Find("grabPoint"); leftFoot = transform.Find("leftFloor").GetComponent <footScript>(); rightFoot = transform.Find("rightFloor").GetComponent <footScript>(); jumpLeft = transform.Find("jumpLeft").GetComponent <footScript>(); jumpRight = transform.Find("jumpRight").GetComponent <footScript>(); }
// Use this for initialization public override void Start() { base.Start(); jumpLeft = transform.Find("jumpLeft").GetComponent <footScript>(); jumpRight = transform.Find("jumpRight").GetComponent <footScript>(); }