コード例 #1
0
ファイル: XYShootingAI.cs プロジェクト: piotrszleg/LD37
 // Use this for initialization
 void Start()
 {
     target         = GameObject.FindGameObjectWithTag("Player").transform;
     movement       = GetComponent <XYMovement>();
     shootingScript = GetComponent <ShootingScript>();
     fsm.pushState(WasteTime);
 }
コード例 #2
0
ファイル: GameLogic.cs プロジェクト: MKBjorkman/Pipeliner
    // 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);
    }
コード例 #3
0
ファイル: XYEnemy.cs プロジェクト: piotrszleg/LD37
 // Use this for initialization
 void Start()
 {
     movement = GetComponent <XYMovement>();
     target   = GameObject.FindGameObjectWithTag("Player").transform;
 }
コード例 #4
0
ファイル: RogueInput.cs プロジェクト: piotrszleg/LD37
 // Use this for initialization
 void Start()
 {
     movement       = GetComponent <XYMovement>();
     shootingScript = GetComponent <ShootingScript>();
 }
コード例 #5
0
ファイル: XYEnemyFSM.cs プロジェクト: piotrszleg/LD37
 // Use this for initialization
 void Start()
 {
     movement = GetComponent <XYMovement>();
     fsm.pushState(WasteTime);
 }