void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); var evt = runner.stateMachine.attacker.GetComponent <MyAnimationEvent>(); evt.EnterJump(); }
/// <summary> /// Start时候获取Runner /// 角度 /// 如果是冲击技能则 初始化伤害体初始位置和最终位置 /// </summary> void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); cosAngle = Mathf.Cos(Mathf.Deg2Rad * angle); if (runner != null && runner.Event.attachOwner) { InitPosition = runner.transform.position; targetPos = InitPosition + transform.forward * Distance; } }
// Use this for initialization void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); if (runner.triggerEvent != null && runner.triggerEvent.type == MyEvent.EventType.EventMissileDie) { transform.position = runner.triggerEvent.missile.transform.position; } var attacker = runner.stateMachine.attacker; StartCoroutine(WaitExplosive()); }
void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); var attacker = runner.stateMachine.attacker; if (runner.BeamTargetPos != Vector3.zero) { if (Particle != null) { GameObject g = Instantiate(Particle) as GameObject; NGUITools.AddMissingComponent <RemoveSelf> (g); g.transform.parent = ObjectManager.objectManager.transform; g.transform.position = runner.BeamTargetPos + ParticlePos; } } }
/// <summary> /// 初始化Runner /// </summary> void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); if (runner.stateMachine.attacker != null) { var spawnT = runner.stateMachine.attacker.GetComponent <NpcAttribute>().spawnTrigger; if (spawnT != null) { var chest = spawnT.GetComponent <SpawnChest>(); if (chest != null) { MonsterId = chest.MonsterID; } } } StartCoroutine(UpdateUnitSpawn()); }
// Use this for initialization void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); StartCoroutine(ShanShuoNow()); }
void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); StartCoroutine(UpdateUnitSpawn()); }
void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); MakeBomb(); }
// Use this for initialization void Start() { runner = transform.parent.GetComponent <SkillLayoutRunner>(); StartCoroutine(MakeMonster()); }