示例#1
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        startTime     = Time.time;
        Combinations  = GetComponent <VSCombinationHandler>();
        combination   = GetComponent <CombiManager>();
        player_1_life = Life;
        player_2_life = Life;
    }
示例#2
0
 void Start()
 {
     GM     = VSGameManager.instance;
     middle = GetComponent <Image>();
 }
示例#3
0
 void Start()
 {
     GM       = VSGameManager.instance;
     prevLife = GM.Life;
 }
示例#4
0
 // Use this for initialization
 void Start()
 {
     GM          = VSGameManager.instance;
     animator    = transform.GetComponentInChildren <Animator>();
     audioSource = GetComponent <AudioSource>();
 }
示例#5
0
    private string Print = null; //print life text in gamescene string Later it change image ofr sprite

    void Start()
    {
        GM = VSGameManager.instance;
    }
示例#6
0
 void Start()
 {
     GM     = VSGameManager.instance;
     slider = GetComponent <Slider>();
 }