protected virtual void ClearWindow() { resSev = null; audioSev = null; netSev = null; timerSev = null; }
protected virtual void InitWindow() { resSev = ResSev.Instance; audioSev = AudioSev.Instance; netSev = NetSev.Instance; timerSev = TimerSev.Instance; }
public virtual void InitSys() { DontDestroyOnLoad(this); resSev = ResSev.Instance; audioSev = AudioSev.Instance; netSev = NetSev.Instance; timerSev = TimerSev.Instance; }
public virtual void Init() { timerSev = TimerSev.Instance; camTrasn = Camera.main.transform; _transform = transform; _gameObject = gameObject; animator = GetComponent <Animator>(); hpRoot = transform.Find("hpRoot"); ctrl = GetComponent <CharacterController>(); Transform st = transform.Find("Sound"); soundObj = st == null ? null : st.gameObject; sound = soundObj == null ? null : soundObj.GetComponent <AkEvent>(); }
public void Init() { resSev = ResSev.Instance; timerSev = TimerSev.Instance; }
// Start is called before the first frame update void Start() { timerSev = TimerSev.Instance; }