コード例 #1
0
 void Start()
 {
     input = GetComponent <InputRouter>();
     Life  = lifeBase;
     bloodFx.Stop();
     cureFx.Stop();
 }
コード例 #2
0
 void Start()
 {
     input               = GetComponent <InputRouter>();
     playerMovement      = GetComponent <PlayerMovement>();
     playerStatusDisplay = transform.Find("StatusCanvas")?.GetComponent <PlayerStatusDisplay>();
     Mana = startMana;
 }
コード例 #3
0
 // Use this for initialization
 protected void Start()
 {
     input            = GetComponent <InputRouter>();
     playerId         = input.PlayerId;
     playerMovement   = GetComponent <PlayerMovement>();
     playerMana       = GetComponent <PlayerMana>();
     animationManager = GetComponent <SpineAnimationManager>();
 }
コード例 #4
0
 void Start()
 {
     input                      = GetComponent <InputRouter>();
     tintManager                = GetComponent <TintManager>();
     playerStatusDisplay        = transform.Find("StatusCanvas")?.GetComponent <PlayerStatusDisplay>();
     playerStatusDisplay.Life   = Life;
     playerStatusDisplay.Player = "P" + input.PlayerId;
     // Life = lifeBase;
 }
コード例 #5
0
 // Use this for initialization
 virtual protected void Start()
 {
     input               = GetComponent <InputRouter>();
     playerId            = input.PlayerId;
     playerMovement      = GetComponent <PlayerMovement>();
     playerMana          = GetComponent <PlayerMana>();
     animationManager    = GetComponent <AnimationManager>();
     playerCondition     = GetComponent <PlayerCondition>();
     tintManager         = GetComponent <TintManager>();
     playerStatusDisplay = transform.Find("StatusCanvas")?.GetComponent <PlayerStatusDisplay>();
     // Debug.Log("playerstatusdisplau"  + playerStatusDisplay);
 }
コード例 #6
0
    private float maxAirSpeed = 0;   // TODO

    void Start()
    {
        body = GetComponent <Rigidbody2D>();
        Debug.Assert(body != null, "could not find player collider");

        collider = GetComponent <Collider2D>();
        Debug.Assert(collider != null, "could not find player collider");

        input = GetComponent <InputRouter>();
        Debug.Assert(collider != null, "could not find input router");

        IsWallDetached = true;
        Rebase();
    }
コード例 #7
0
 void Start()
 {
     animationManager = GetComponent <AnimationManager>();
     inputRouter      = GetComponent <InputRouter>();
 }
コード例 #8
0
 void Start()
 {
     input = GetComponent <InputRouter>();
 }
コード例 #9
0
 void Start()
 {
     input          = GetComponent <InputRouter>();
     playerMovement = GetComponent <PlayerMovement>();
     Mana           = manaBase;
 }