void Awake()
    {
        GameMasterGo       = GameObject.Find("GameMaster");
        GuiManager         = GameMasterGo.GetComponent <guiManager>();
        GoHandler          = GameMasterGo.GetComponent <GameObject_handler>();
        GuiCanvasGo        = GuiManager.GuiCanvasGo;
        floatingTextPrefab = GuiManager.guiFloatingDamageTextPrefab;
        if (gameObject.layer == 8)
        {
            isPlayer = true;
        }

        myResistances = GetComponent <resistances>();
    }
Пример #2
0
 void Awake()
 {
     GameMasterGo    = GameObject.Find("GameMaster");
     ModifierHandler = GameMasterGo.GetComponent <modifier_handler>();
     myResistances   = GetComponent <resistances>();
 }