public void open(TimeActions timeScript, Animator anim) { isOpen = true; anim.SetBool("SettingWaypoint", true); timeScript.setCheckpoint(); StartCoroutine(setState()); audio.PlayOneShot(OpenSound); audio.PlayDelayed(1.0f); //Save state of the world. }
public ServiceContiner() { TodoActions = new(); TimeActions = new(); GroupActions = new(); MemoryActions = new(); LocationActions = new(); AssistantActions = new(); AssistantActions.Ini(false); TimeActions.Ini(false); TodoActions.Ini(false); GroupActions.Ini(false); MemoryActions.Ini(false); LocationActions.Ini(false); }
void Start() { timeActions = GetComponent<TimeActions>(); master = GetComponent<ThirdPersonController>(); playerTransform = GameObject.FindWithTag("Player").transform; }
void Start() { anim = GetComponent<Animator>(); anim.SetLayerWeight(1, 1.0f); anim.SetLayerWeight(2, 1.0f); timeScript = GetComponent<TimeActions>(); camScript = GetComponent<ThirdPersonCamera>(); activationHandler = GetComponent<ActivationHandler>(); weapHandler = GetComponent<WeaponHandler>(); ammoScript = GetComponent<Ammo>(); playerActivationHandler = GetComponent<PlayerActivationHandler>(); cloneActivationHandler = GetComponent<CloneActivationHandler>(); flash = GameObject.Find("Flash").GetComponent<Screenflash>(); if(anim.layerCount == 2) anim.SetLayerWeight(1, 1); mMoving = false; anim.SetBool("GetUp", getUpAtStart); }