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

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

        buildingCheck = player.GetComponent <InBuilding>();
        controls      = MetaScript.GetControls();
    }
Example #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();
    }
Example #6
0
 private bool isBrave()
 {
     return(GetComponent <Skills>().getValue(Skills.list.braveness) > 5 || MetaScript.GetControls().Guarding());
 }
Example #7
0
 private void setPlayerBusy(bool busy)
 {
     MetaScript.GetControls().FocusedInput = busy;
     isInvulnerable = busy;
 }
Example #8
0
 // Use this for initialization
 void Start()
 {
     controls = MetaScript.GetControls();
 }
Example #9
0
 void Start()
 {
     timeSinceAction = 0;
     controls        = MetaScript.GetControls();
 }
Example #10
0
 public static void focused(bool yes)
 {
     MetaScript.GetControls().FocusedInput = yes;
 }
Example #11
0
 void Start()
 {
     buildingPrefabs        = Resources.LoadAll("Prefabs/Outpost_Buildings", typeof(GameObject)).Cast <GameObject>().ToArray();
     buildingPrefabsObjects = buildingPrefabs;
     controls = MetaScript.GetControls();
 }
Example #12
0
 void Start()
 {
     controlsHelp = this.transform.GetChild(4).gameObject;
     controls     = MetaScript.GetControls();
     toggleBool   = true;
 }
Example #13
0
 // Use this for initialization
 void Start()
 {
     torch    = GetComponent <Light>();
     controls = MetaScript.GetControls();
 }