Пример #1
0
        void Start()
        {
            runner = transform.parent.GetComponent <SkillLayoutRunner>();
            var evt = runner.stateMachine.attacker.GetComponent <MyAnimationEvent>();

            evt.EnterJump();
        }
Пример #2
0
 /// <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;
     }
 }
Пример #3
0
        // 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());
        }
Пример #4
0
        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;
                }
            }
        }
Пример #5
0
 /// <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());
 }
Пример #6
0
 // Use this for initialization
 void Start()
 {
     runner = transform.parent.GetComponent <SkillLayoutRunner>();
     StartCoroutine(ShanShuoNow());
 }
Пример #7
0
 void Start()
 {
     runner = transform.parent.GetComponent <SkillLayoutRunner>();
     StartCoroutine(UpdateUnitSpawn());
 }
Пример #8
0
 void Start()
 {
     runner = transform.parent.GetComponent <SkillLayoutRunner>();
     MakeBomb();
 }
Пример #9
0
 // Use this for initialization
 void Start()
 {
     runner = transform.parent.GetComponent <SkillLayoutRunner>();
     StartCoroutine(MakeMonster());
 }