Example #1
0
    // 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);
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     move = this.gameObject.GetComponent<DinoMoveScript>();
     move.h = 1.0f;
     move.v = 0.7f;
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     //assign the MotionController script to the dino var
     dino = gameObject.GetComponent<DinoMoveScript>() as DinoMoveScript;
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     move = this.gameObject.GetComponent<DinoMoveScript>();
 }