Пример #1
0
 // Use this for initialization
 void Start()
 {
     player     = MetaScript.getPlayer();
     spawnPoint = gameObject;
     canFire    = true;
     controls   = MetaScript.GetControls();
 }
Пример #2
0
 //private GameObject cam;
 private void Awake()
 {
     animator = gameObject.GetComponentInChildren <Animator>();
     controls = MetaScript.GetControls();
     rpgtalk  = GameObject.FindObjectOfType <RPGTalk>();
     // cam = GameObject.Find("MainCam");
 }
Пример #3
0
    void Start()
    {
        allUIObject = GameObject.Find("AllUIObjectsCanvas");

        buildingMenuObject = allUIObject.transform.GetChild(2).gameObject;
        controls           = MetaScript.GetControls();
    }
Пример #4
0
    private void Start()
    {
        timer2 = timer;
        player = MetaScript.getPlayer();

        buildingCheck = player.GetComponent <InBuilding>();
        controls      = MetaScript.GetControls();
    }
Пример #5
0
    void Start()
    {
        allUIObject = GameObject.Find("AllUIObjectsCanvas");

        npcManager = allUIObject.transform.GetChild(0).GetChild(0).gameObject;

        npcDisplay  = allUIObject.transform.GetChild(1).GetChild(0).gameObject;
        moreDetails = allUIObject.transform.GetChild(1).GetChild(1).gameObject;
        roleSelect  = allUIObject.transform.GetChild(1).GetChild(2).gameObject;
        controls    = MetaScript.GetControls();
    }
Пример #6
0
 private bool isBrave()
 {
     return(GetComponent <Skills>().getValue(Skills.list.braveness) > 5 || MetaScript.GetControls().Guarding());
 }
Пример #7
0
 private void setPlayerBusy(bool busy)
 {
     MetaScript.GetControls().FocusedInput = busy;
     isInvulnerable = busy;
 }
Пример #8
0
 // Use this for initialization
 void Start()
 {
     controls = MetaScript.GetControls();
 }
Пример #9
0
 void Start()
 {
     timeSinceAction = 0;
     controls        = MetaScript.GetControls();
 }
Пример #10
0
 public static void focused(bool yes)
 {
     MetaScript.GetControls().FocusedInput = yes;
 }
Пример #11
0
 void Start()
 {
     buildingPrefabs        = Resources.LoadAll("Prefabs/Outpost_Buildings", typeof(GameObject)).Cast <GameObject>().ToArray();
     buildingPrefabsObjects = buildingPrefabs;
     controls = MetaScript.GetControls();
 }
Пример #12
0
 void Start()
 {
     controlsHelp = this.transform.GetChild(4).gameObject;
     controls     = MetaScript.GetControls();
     toggleBool   = true;
 }
Пример #13
0
 // Use this for initialization
 void Start()
 {
     torch    = GetComponent <Light>();
     controls = MetaScript.GetControls();
 }