Saturday, 31 January 2026 01:00:43
This commit is contained in:
@@ -21,11 +21,9 @@ public partial class Phone : Sprite2D
|
||||
{
|
||||
_phoneButtons[i]._phone = this;
|
||||
}
|
||||
_phoneButtons[0]._contact = new SlideBack2();
|
||||
_phoneButtons[1]._contact = new Rotate90();
|
||||
_phoneButtons[2]._contact = new Swap1And6();
|
||||
_phoneButtons[3]._contact = new Shift1ColumnRight();
|
||||
_phoneButtons[4]._contact = new ShuffleCells();
|
||||
_phoneButtons[0]._contact._action = new Example1();
|
||||
_phoneButtons[0]._contact._action._owner = _player;
|
||||
_phoneButtons[0]._contact.SetTimer(1.5f);
|
||||
}
|
||||
|
||||
public override void _Process(double DELTA_)
|
||||
@@ -33,17 +31,17 @@ public partial class Phone : Sprite2D
|
||||
// _hoveredButton = _phoneButtons.FirstOrDefault(c => c._isHovered, null);
|
||||
}
|
||||
|
||||
public void CallLoadedContact()
|
||||
{
|
||||
_loadedContact.CallAction();
|
||||
ResetContact();
|
||||
}
|
||||
// public void CallLoadedContact()
|
||||
// {
|
||||
// _loadedContact.CallAction();
|
||||
// ResetContact();
|
||||
// }
|
||||
|
||||
public void LoadContact(Contact CONTACT)
|
||||
{
|
||||
_loadedContact = CONTACT;
|
||||
_debug.Text = _loadedContact.GetType().ToString();
|
||||
}
|
||||
// public void LoadContact(Contact CONTACT)
|
||||
// {
|
||||
// _loadedContact = CONTACT;
|
||||
// _debug.Text = _loadedContact.GetType().ToString();
|
||||
// }
|
||||
|
||||
public void PassPlayer(Player PLAYER)
|
||||
{
|
||||
@@ -51,7 +49,7 @@ public partial class Phone : Sprite2D
|
||||
for (int i = 0; i < _phoneButtons.Count; i++)
|
||||
{
|
||||
_phoneButtons[i]._phone = this;
|
||||
_phoneButtons[i]._contact.PassPlayer(PLAYER);
|
||||
_phoneButtons[i]._contact.PassOwner(PLAYER);
|
||||
_phoneButtons[i]._contact.PassNumber((i+1)%10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user