示例#1
0
 void Awake()
 {
     gm = Camera.main.GetComponent<GameManagement>();
     laneChanging = false;
     laneHeight = gm.GetLaneHeight();
     MoveOffset();
 }
示例#2
0
    // 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
    // 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?
    }