void Start()
 {
     if (MaxHP <= 0)
     {
         MaxHP = 1;
     }
     HP      = MaxHP;
     mplayer = PeCreature.Instance.mainPlayer;
     anmt    = mplayer.animCmpt;
     mmc     = mplayer.motionMgr;
     af      = mmc.GetAction <Action_Fell>();
     ht      = HolotreeTask.Instance;
 }
Example #2
0
        //float hppct;

        void Awake()
        {
            s_instance = this;
        }