Exemple #1
0
 void Start()
 {
     caminarHacia = transform.position;
     pies         = transform.Find("Pies").gameObject;
     syncAnimator = transform.GetComponent <SyncAnimator>();
     escenario    = FindObjectOfType <NavMap>();
 }
Exemple #2
0
 // Start is called before the first frame update
 public override void OnAwake()
 {
     base.OnAwake();
     animator      = transform.GetNestedComponentInChildren <Animator, NetObject>(true);
     syncAnimator  = transform.GetNestedComponentInChildren <SyncAnimator, NetObject>(true);
     syncTransform = GetComponent <SyncTransform>();
     syncLauncher  = transform.GetNestedComponentInChildren <SyncCannon, NetObject>(true);
     syncHitscan   = transform.GetNestedComponentInChildren <SyncContactScan, NetObject>(true);
 }
Exemple #3
0
 private void Start()
 {
     currentHealth         = totalHealth;
     syncAnimator          = GetComponent <SyncAnimator>();
     skillController       = GetComponent <SkillController>();
     basicAttackController = GetComponent <BasicAttackController>();
     coll             = GetComponent <CapsuleCollider2D>();
     statusController = GetComponent <StatusController>();
     battleArena      = FindObjectOfType <BattleArena>();
 }
Exemple #4
0
 private void Start()
 {
     navChar = GetComponent <NavChar>();
     basicAttackController = GetComponent <BasicAttackController>();
     skillController       = GetComponent <SkillController>();
     healthController      = GetComponent <HealthController>();
     sprite                   = GetComponent <SpriteRenderer>();
     syncAnimator             = GetComponent <SyncAnimator>();
     sfx                      = GetComponent <SyncSFX>();
     originalWalkingSpeed     = navChar.speed;
     originalBasicAttackSpeed = basicAttackController.debounceTime;
     rb = GetComponent <Rigidbody2D>();
 }
Exemple #5
0
    private void Start()
    {
        localStats = GetComponent <Stats>();
        animator   = GetComponent <SyncAnimator>();

        instance = this;
        if (hand.childCount > 0)
        {
            currentWeapon = hand.GetComponentInChildren <WeaponBase>();
            if (currentWeapon != null)
            {
                currentWeapon.CallStart();
            }
            currentExplosive = hand.GetComponentInChildren <ExplosiveBase>();
            if (currentExplosive != null)
            {
                currentExplosive.CallStart();
            }
        }

        Console.Toggle();
    }
        public override void OnEnable()
        {
            base.OnEnable();

            t = target as SyncAnimator;

            if (!t)
            {
                return;
            }

            if (t)
            {
                a = t.GetComponent <Animator>();
            }

            if (a)
            {
                t.RebuildIndexedNames();
            }


            /// Initialize short term settings memory

            uid = t.GetInstanceID();

            if (!showSummary.ContainsKey(uid))
            {
                showSummary[uid] = false;
            }

            if (!showAdvancedParams.ContainsKey(uid))
            {
                showAdvancedParams[uid] = false;
            }
        }
 void Awake()
 {
     animator = GetComponent <SyncAnimator>();
 }
Exemple #8
0
 private void Start()
 {
     syncAnimator = GetComponent <SyncAnimator>();
     navChar      = GetComponent <NavChar>();
     sfx          = GetComponent <SyncSFX>();
 }