Exemple #1
0
 protected virtual void ClearWindow()
 {
     resSev   = null;
     audioSev = null;
     netSev   = null;
     timerSev = null;
 }
Exemple #2
0
 protected virtual void InitWindow()
 {
     resSev   = ResSev.Instance;
     audioSev = AudioSev.Instance;
     netSev   = NetSev.Instance;
     timerSev = TimerSev.Instance;
 }
Exemple #3
0
 public virtual void InitSys()
 {
     DontDestroyOnLoad(this);
     resSev   = ResSev.Instance;
     audioSev = AudioSev.Instance;
     netSev   = NetSev.Instance;
     timerSev = TimerSev.Instance;
 }
Exemple #4
0
    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>();
    }
Exemple #5
0
 public void Init()
 {
     resSev   = ResSev.Instance;
     timerSev = TimerSev.Instance;
 }
Exemple #6
0
 // Start is called before the first frame update
 void Start()
 {
     timerSev = TimerSev.Instance;
 }