// Use this for initialization void Start() { player = MetaScript.getPlayer(); spawnPoint = gameObject; canFire = true; controls = MetaScript.GetControls(); }
//private GameObject cam; private void Awake() { animator = gameObject.GetComponentInChildren <Animator>(); controls = MetaScript.GetControls(); rpgtalk = GameObject.FindObjectOfType <RPGTalk>(); // cam = GameObject.Find("MainCam"); }
void Start() { allUIObject = GameObject.Find("AllUIObjectsCanvas"); buildingMenuObject = allUIObject.transform.GetChild(2).gameObject; controls = MetaScript.GetControls(); }
private void Start() { timer2 = timer; player = MetaScript.getPlayer(); buildingCheck = player.GetComponent <InBuilding>(); controls = MetaScript.GetControls(); }
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(); }
private bool isBrave() { return(GetComponent <Skills>().getValue(Skills.list.braveness) > 5 || MetaScript.GetControls().Guarding()); }
private void setPlayerBusy(bool busy) { MetaScript.GetControls().FocusedInput = busy; isInvulnerable = busy; }
// Use this for initialization void Start() { controls = MetaScript.GetControls(); }
void Start() { timeSinceAction = 0; controls = MetaScript.GetControls(); }
public static void focused(bool yes) { MetaScript.GetControls().FocusedInput = yes; }
void Start() { buildingPrefabs = Resources.LoadAll("Prefabs/Outpost_Buildings", typeof(GameObject)).Cast <GameObject>().ToArray(); buildingPrefabsObjects = buildingPrefabs; controls = MetaScript.GetControls(); }
void Start() { controlsHelp = this.transform.GetChild(4).gameObject; controls = MetaScript.GetControls(); toggleBool = true; }
// Use this for initialization void Start() { torch = GetComponent <Light>(); controls = MetaScript.GetControls(); }