// Use this for initialization void Start() { dMoveScript = player.GetComponent<DinoMoveScript>() as DinoMoveScript; transform.position = Vector3.zero; transform.localScale = Vector3.zero; Resize(this.gameObject.guiTexture, buttonPos); }
// Use this for initialization void Start() { move = this.gameObject.GetComponent<DinoMoveScript>(); move.h = 1.0f; move.v = 0.7f; }
// Use this for initialization void Start() { //assign the MotionController script to the dino var dino = gameObject.GetComponent<DinoMoveScript>() as DinoMoveScript; }
// Use this for initialization void Start() { move = this.gameObject.GetComponent<DinoMoveScript>(); }