예제 #1
0
        public override void OnSpawn()
        {
            transform.localPosition = new Vector3(0, 0, LocalPositionZ);

            float totalOffset = (HealthBarWidth * 0.5f) + HealthBarMargin;

            TemporaryStatuses.LocalPositionX = -totalOffset;
            PermanentStatuses.LocalPositionX = totalOffset;

            TemporaryStatuses.OnSpawn();
            PermanentStatuses.OnSpawn();
        }
예제 #2
0
        public byte[] ToByteArray()
        {
            List <byte> result = new List <byte>(25);

            result.Add(PA);
            result.Add(MA);
            result.Add(Speed);
            result.Add(Move);
            result.Add(Jump);
            result.AddRange(PermanentStatuses.ToByteArray());
            result.AddRange(StatusImmunity.ToByteArray());
            result.AddRange(StartingStatuses.ToByteArray());
            result.Add(Absorb.ToByte());
            result.Add(Cancel.ToByte());
            result.Add(Half.ToByte());
            result.Add(Weak.ToByte());
            result.Add(Strong.ToByte());

            return(result.ToArray());
        }
예제 #3
0
 protected override void OnUIElementInit()
 {
     TemporaryStatuses.Init();
     PermanentStatuses.Init();
 }