Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     target         = GameObject.FindGameObjectWithTag("Player").transform;
     movement       = GetComponent <XYMovement>();
     shootingScript = GetComponent <ShootingScript>();
     fsm.pushState(WasteTime);
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        score        = 0;
        choppaActive = false;

        isRecording   = false;
        isPlayingBack = false;
        loopPlayback  = false;

        flatty = GameObject.Find("FlatbedTruck");
        choppa = GameObject.Find("Choppa");

        flattyController = flatty.GetComponent <motorMovement>();
        choppaController = choppa.GetComponent <XYMovement>();
        lookingGlass     = GameObject.Find("Main Camera").GetComponent <GameCamera>();

        lookingGlass.SetTarget(flatty.transform);
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     movement = GetComponent <XYMovement>();
     target   = GameObject.FindGameObjectWithTag("Player").transform;
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     movement       = GetComponent <XYMovement>();
     shootingScript = GetComponent <ShootingScript>();
 }
Ejemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     movement = GetComponent <XYMovement>();
     fsm.pushState(WasteTime);
 }