Esempio n. 1
0
 public PhytoClimbingState(PhytoControllerMachine m)
 {
     machine   = m;
     KeyValue  = PhytoControllerMachine.Climbing;
     sourceKey = CharacterMachine.Base;
     source    = machine.states[sourceKey];
 }
    private void Awake()
    {
        system = GetComponent <Parametric_L_System>();
        turtle = GetComponentInChildren <AubrevilleTurtle>();

        ApicesTriggered = new int[MaxVerticalDepth][];
        for (int i = 0; i < MaxVerticalDepth; i++)
        {
            ApicesTriggered[i] = new int[BranchWhorls];
        }

        phyto = FindObjectOfType <PhytoControllerMachine>();
        //phyto.DoubleJump.AddListener();
    }
Esempio n. 3
0
 private new void Awake()
 {
     base.Awake();
     phyto = FindObjectOfType <PhytoControllerMachine>();
     phyto.DoubleJump.AddListener(DerivePlatform);
 }