예제 #1
0
 protected override void Awake()
 {
     base.Awake();
     //temp: register hint object
     hint_gc_key = attack_hint.GetComponent <GC_SelfDestoryItem>()?.key;
     GCManager.RegisterObject(hint_gc_key, attack_hint);
 }
예제 #2
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        GCManager.RegisterObject(DAMAGE_POPUP_GC_KEY, damage_popup_prefab);
    }
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        //register particle
        GCManager.RegisterObject(SMALL_BLAST_GC_KYE, smallBlast);
        GCManager.RegisterObject(Large_BLAST_GC_KYE, largeBlast);
        GCManager.RegisterObject(RED_CIRCLE_HINT_GC_KEY, red_circle);
    }
예제 #4
0
 private void Awake()
 {
     GCManager.RegisterObject(GC_key, gameObject);
 }
예제 #5
0
 private void Awake()
 {
     Debug.Log("register hp bar");
     GCManager.RegisterObject(HPBAR_GC_KEY, gameObject);
 }
예제 #6
0
 protected virtual void Start()
 {
     //gegister gc key
     GCManager.RegisterObject(ammoData.GC_key, gameObject);
 }