Esempio n. 1
0
    public override void EnterPlatform(Collider other)
    {
        ActorParent componentInChildren = other.get_transform().get_root().GetComponentInChildren <ActorParent>();

        if (componentInChildren == null || this.passengers.Contains(componentInChildren))
        {
            return;
        }
        Debuger.Error("add", new object[0]);
        this.passengers.Add(componentInChildren);
        componentInChildren.EnterPlatformArea();
        base.AddStartPlatformEvent(new Action(componentInChildren.StartPlatformTrip));
        base.AddEndPlatformEvent(new Action(componentInChildren.FinishPlatformTrip));
    }