コード例 #1
0
ファイル: Spawnable.cs プロジェクト: dbarella/CS361-CMYKrash
 void Awake()
 {
     gm = Camera.main.GetComponent<GameManagement>();
     laneChanging = false;
     laneHeight = gm.GetLaneHeight();
     MoveOffset();
 }
コード例 #2
0
ファイル: Ship.cs プロジェクト: dbarella/CS361-CMYKrash
    // Use this for initialization
    void Start()
    {
        //sheild animation particle system
        shieldAnim = GetComponent<ParticleSystem>();
        //Source audio
        audioSource = GetComponent<AudioSource>();
        //Source the Game Management
        mgmt = Camera.main.GetComponent<GameManagement>();
        //storing laneheight for future use
        laneHeight = mgmt.GetLaneHeight();

        laneChanging = false;
        laneSplit = false;
    }
コード例 #3
0
ファイル: Ship.cs プロジェクト: SomethingStupid/Scripts
    // Use this for initialization
    void Start()
    {
        //Source the Game Management
        mgmt = Camera.main.GetComponent<GameManagement>();
        //storing laneheight for future use
        laneHeight = mgmt.GetLaneHeight();

        laneChanging = false;
        //Source the weapon? or is that part of the prefab?
    }