Beispiel #1
0
        private void Awake()
        {
            // Auto Get Scripts
            animationScript = GetComponent <SideScrollerAnimation>();
            audioScript     = GetComponent <SideScrollerAudio>();
            attackScript    = GetComponent <SideScrollerAttack>();
            healthScript    = GetComponent <SideScrollerHealth>();
            moverScript     = GetComponent <SideScrollerMover>();
            poseScript      = GetComponent <SideScrollerPose>();

            startPosition = transform.position;

            // Set Status - if has preset
            if (statusData)
            {
                SetFighterData(statusData);
            }
        }
 // Start is called before the first frame update
 protected virtual void Start()
 {
     // Auto Get
     moverScript   = GetComponent <SideScrollerMover>();
     fighterScript = GetComponent <SideScrollerFighter>();
 }