コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     // Gameobjects Components getters
     Player_RB = GetComponent <Rigidbody2D>();
     Player_SR = GetComponent <SpriteRenderer>();
     Player_An = GetComponent <Animator>();
     Player_Mo = GetComponent <Glucose_Controls>();
     Change_Animation_Vibe(Glucose_States.Player_Emotion.Normal);
 }
コード例 #2
0
ファイル: Glucose_Health.cs プロジェクト: Paracetamol56/E428
 // Start is called before the first frame update
 void Start()
 {
     // Get all components
     Glucose_An      = GetComponent <Glucose_Animation>();
     Glucose_St      = GetComponent <Glucose_States>();
     Glucose_Mo      = GetComponent <Glucose_Controls>();
     Audio_Prefab_Sp = GetComponent <Audio_Prefab_Spawner>();
     // Setup Current Health
     Current_Health = Max_Health;
 }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     Glucose_Vibe    = Player_Emotion.Normal;
     Glucose_Control = Player_Control.Normal;
     Glucose_An      = GetComponent <Glucose_Animation>();
     Glucose_Mo      = GetComponent <Glucose_Controls>();
     Glucose_Att     = GetComponent <Glucose_Attack>();
     Event_System.current.onCinematicBegin += Change_Control_To_Cinematic;
     Event_System.current.onCinematicEnd   += Change_Control_To_Normal;
 }