예제 #1
0
    void Start()
    {
        Testings tempte = FindObjectOfType <Testings>();

        if (tempte == null)
        {
            GameObject tempTe = Instantiate(netLuncher);

            strtDeleg += tempTe.GetComponent <Testings>().ButonStart;
            strtBut.onClick.AddListener(strtDeleg);
        }
        else
        {
            strtDeleg += tempte.ButonStart;
            strtBut.onClick.AddListener(strtDeleg);
        }
        StatsUpdate();
    }
    void Awake()
    {
        tempLaunch = FindObjectOfType <Testings>();

        switch (tempLaunch.fighter)
        {
        case 0:
            Instantiate(models[0], transform);
            break;

        case 1:
            Instantiate(models[1], transform);
            break;

        case 2:
            Instantiate(models[2], transform);
            break;
        }
    }
 void Start()
 {
     launch = FindObjectOfType <Testings>();
     FightInic();
 }
예제 #4
0
 void Start()
 {
     test = GetComponent <Testings>();
 }