コード例 #1
0
 private void Start()
 {
     currentStage = char.GetNumericValue(SceneManager.GetActiveScene().name.Substring(5, 1)[0]);
     postman      = GameObject.FindGameObjectWithTag("Postman").GetComponent <PostmanStateHandler>();
 }
コード例 #2
0
 private void ReferenceComponents()
 {
     rb    = GetComponent <Rigidbody2D>();
     state = GetComponent <PostmanStateHandler>();
 }