void Awake() { PlayTime = 0; OriginPosition = transform.position; seeker = GetComponent <Seeker>(); target = GameObject.FindGameObjectWithTag("Greta").transform; //Gretacontroller = GameObject.Find("Greta").GetComponent<GretaController>(); Gretacontroller = GameObject.FindGameObjectWithTag("Greta").GetComponent <GretaController>(); mouse = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MouseOrbit>(); }
// Use this for initialization void Start() { this.setRadarCameraSize(this.RadarCamera); gretaPlayer = GameObject.Find(GretaController.GRETANAME); gretaScript = gretaPlayer.GetComponentInChildren <GretaController>(); aiObjects = GameObject.FindGameObjectsWithTag(testAI.AITAGNAME); foreach (var ai in aiObjects) { enermy.Add(ai); } }
void Start() { //camera.backgroundColor = new Color(3, 3, 3, 0.2f); getResolution(); SSAOEFF = gameObject.GetComponent <SSAOEffect>(); REPost = gameObject.GetComponent <REPostProcessorEffect>(); Mouse = gameObject.GetComponent <MouseOrbit>(); GretaPlayer = GameObject.Find("Greta"); Greta = GretaPlayer.GetComponentInChildren <GretaController>(); LoadSetting(); ApplySetting(); Init_GUITBG(); Background.color = new Color(0.5f, 0.5f, 0.5f, 0.4f); this.audio.clip = BackgroundMusic; this.audio.volume = PlayerPrefs.GetInt("Music") * 0.1f; this.audio.playOnAwake = true; this.audio.loop = true; this.audio.Play(); }
void Awake() { PlayTime = 0; OriginPosition = transform.position; seeker = GetComponent<Seeker>(); target = GameObject.FindGameObjectWithTag("Greta").transform; //Gretacontroller = GameObject.Find("Greta").GetComponent<GretaController>(); Gretacontroller = GameObject.FindGameObjectWithTag("Greta").GetComponent<GretaController>(); mouse = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<MouseOrbit>(); }