상속: MonoBehaviour
예제 #1
0
    private void Start()
    {
        gatherer   = GetComponent <InformationGatherer>();
        coinToss   = GameObject.Find("CoinToss");
        messageBox = GameObject.Find("MessageBox");


        messageBox.SetActive(false);
    }
예제 #2
0
파일: Player.cs 프로젝트: MrP78/MIniWar
 void Start()
 {
     ai                 = GameObject.FindObjectOfType <AI>();
     anim               = GetComponent <Animator>();
     turnover           = GameObject.FindObjectOfType <TurnOver>();
     atri               = GetComponent <CharacterAtributes>();
     gather             = GameObject.FindObjectOfType <InformationGatherer>();
     moveChecker        = GameObject.FindObjectOfType <MoveChecker>();
     healthBar.maxValue = atri.health;
     healthBar.value    = atri.health;
     ActionMenu         = GameObject.FindObjectOfType <Menu>();
     canvas             = GameObject.Find("ActionMenu").GetComponentInChildren <Canvas>();
     canvas.enabled     = false;
     menu               = GameObject.Find("ActionMenu").GetComponentInChildren <Dropdown>();
     menu.ClearOptions();
     menu.AddOptions(DropOptions1);
     menu.Hide();
     orginalMoves = moves;
     ps           = GetComponent <ParticleSystem>();
     gameSpace    = GameObject.FindObjectOfType <GameSpace>();
 }